package newfangle.demos

import java.awt.{Color,BasicStroke,Stroke}
import java.awt.Color._

import org.pwwong.fxscalautils.Predef._
import org.pwwong.fxscalautils.{FXScalaApp,DisplayMode}
import org.pwwong.fxscalautils.components.controls.{Button,Text,RoundRectangle}
import org.pwwong.fxscalautils.components.containers.{HBox,VBox}
import org.pwwong.fxscalautils.components.layouthints._

import org.pwwong.scalautils.animation.Predef._
import org.pwwong.scalautils.signals.Predef._

object BoxContainerDemo extends FXScalaApp(1024,768,DisplayMode.Windowed) {
  contents(
    (HBox() center(Center) middle(Middle) w(90%%) h(90%%)) (
      RoundRectangle() cornerRadius(50.0) fillPaint(red) w( (10 %%)->(40%%) in(1 secs) cycleInfinite ), 
      (VBox() w(*) h(*))(
        RoundRectangle() cornerRadius(50.0) fillPaint(green) h( (30%%)->(70%%) in(500 ms) cycleInfinite ),
        RoundRectangle() cornerRadius(50.0) fillPaint(blue)
      )
    )
  )
}
